package com.zengqingfa.algorithm.cz.chapter03;

import lombok.Data;

/**
 * @author zengqingfa
 * @className Node
 * @description
 * @create 2021/8/31 12:39
 */
@Data
public class Node2<T> {

    //存储的元素
    private T item;

    //指向下一个元素
    private Node2 next;

    //指向前一个元素
    private Node2 pre;

    public Node2(Node2 pre,T item, Node2 next) {
        this.pre = pre;
        this.item = item;
        this.next = next;
    }
}